package com.bytz.modules.cms.common.service;

import com.bytz.modules.cms.common.model.CategoryDiscountSearchVo;
import com.bytz.modules.cms.product.entity.ProductDiscountCategoryLevel;
import com.bytz.modules.cms.productLine.entity.ProductLineLevel;

import java.util.List;
import java.util.Map;

public interface CmsCacheService {

    /**
     * 获取产品线等级Map，Key是产品线等级Id
     *
     * @param ids 要查的ids
     * @return 产品线等级Map
     */
    Map<String, ProductLineLevel> getProductLineLevel(List<String> ids);

    /**
     * 获取产品优惠分类折扣Map, Key是分类等级
     * @param searchVos 查询Vo
     * @return 产品优惠分类折扣Map
     */
    Map<CategoryDiscountSearchVo, ProductDiscountCategoryLevel> getCategoryDiscounts(List<CategoryDiscountSearchVo> searchVos);
}
